part of 'learning_info.dart';

class LearningInterval extends Equatable {
  const LearningInterval({
    required this.startTime,
    required this.endTime,
  });

  final DateTime startTime;
  final DateTime endTime;

  @override
  List<Object?> get props {
    return [
      startTime,
      endTime,
    ];
  }

  LearningInterval copyWith({
    DateTime Function()? startTime,
    DateTime Function()? endTime,
  }) {
    return LearningInterval(
      startTime: startTime == null ? this.startTime : startTime(),
      endTime: endTime == null ? this.endTime : endTime(),
    );
  }
}
